package com.ck.daoImpl;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.ck.dao.ExamBanjiDAO;
import com.ck.domain.ExamBanji;

public class ExamBanjiDAOImpl extends SqlMapClientDaoSupport implements ExamBanjiDAO {

	public List<ExamBanji> getBanjiListForExam(Integer exam) {
		return (List<ExamBanji>)getSqlMapClientTemplate().queryForList("getBanjiListForExam",exam);
	}

	public void addNewExamBanji(ExamBanji examBanji) {
		getSqlMapClientTemplate().insert("addNewExamBanji", examBanji);
	}

	public void deleteExamBanjiByExam(Integer exam) {
		getSqlMapClientTemplate().delete("deleteExamBanjiByExam", exam);
	}

}
